package com.zelin.yang.kotlin_demo.net

import com.zelin.yang.kotlin_demo.entry.BannerBean
import com.zelin.yang.kotlin_demo.entry.LoginBean
import io.reactivex.Observable
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.QueryMap

interface WanAndroidApis {
    /**
     * 首页banner
     */
    @GET("banner/json")
    fun banner(): Observable<BaseResponse<List<BannerBean>>>

    /**
     * 登录
     */
    @POST("user/login")
    fun login(@QueryMap param: Map<String, String>): Observable<BaseResponse<LoginBean>>
}